x86/IRQ: tighten vector checks
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:47:06 +0000 (11:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:47:06 +0000 (11:47 +0200)
commit302aa715fe68a20914aa1f6a4d791efb05cf2f0a
tree656250f57b9c78109a66e417fd8ff932982a18bc
parenta2070da838048bd865c4ef459d702ba5e6daa5bb
x86/IRQ: tighten vector checks

Use valid_irq_vector() rather than "> 0".

Also replace an open-coded use of IRQ_VECTOR_UNASSIGNED.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c